//获取当前时间YYYY-MM-dd HH:MM:SS
function getNowFormatDate(date) {
	var date = new Date(date);
	var seperator1 = "-";
	var seperator2 = ":";
	var month = date.getMonth() + 1;
	var strDate = date.getDate();
	if(month >= 1 && month <= 9) {
		month = "0" + month;
	}
	if(strDate >= 0 && strDate <= 9) {
		strDate = "0" + strDate;
	}
	var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate +
		" " + (date.getHours() >= 10 ? date.getHours() : "0" + date.getHours()) + seperator2 + (date.getMinutes() >= 10 ? date.getMinutes() : "0" + date.getMinutes()) +
		seperator2 + (date.getSeconds() >= 10 ? date.getSeconds() : "0" + date.getSeconds());
	return currentdate;
}

